<div id="details-container">
    <?php
    echo form_open($this->uri->uri_string(), array(
                                                  'class' => 'crud',
                                                  'id' => ($this->method == 'edit') ? 'cat_edit' : 'cat_create'
                                             ));
    ?>
    <div id="title-value" class="hidden">
    <?php
            if ($this->controller == 'admin_categories' && $this->method === 'edit') {
        echo sprintf(lang('cat_edit_title'), $category->title);
        echo form_hidden('cat_id', $category->id);
    } else {
        echo lang('cat_create_title');
    }
        ?>
    </div>
    <ol>
        <li>
            <label for="title"><?php echo lang('cat_title_label');?></label>
            <?php echo form_input('title', $category->title); ?>
            <span class="required-icon tooltip"><?php echo lang('required_label');?></span>
        </li>
    </ol>
    <div class="buttons float-left padding-top">
        <?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel'))); ?>
        <?php
        if ($this->controller == 'admin_categories' && $this->method === 'edit') {
            echo anchor('admin/blog/categories/delete/' . $category->id, lang('blog_delete_label'), array('class' => 'confirm button delete'));
        } ?>
    </div>
    <?php echo form_close(); ?>
</div>